﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Vinetlife.Master" AutoEventWireup="true"
    CodeBehind="NewProducts.aspx.cs" Inherits="VINETLIFE.NewProducts" %>

<%@ Register TagPrefix="cp" Namespace="SiteUtils" Assembly="CollectionPager" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="main-container">
        <div class="main-container-inner">
            <div id="breadcrumb">
                <ul class="crumbs">
                    <li class="first"><a href="/" style="z-index: 9;" title="Trang chủ"><span></span>Trang chủ</a></li>
                    <li><a href="/danh-muc-san-pham/" style="z-index: 8;">Sản phẩm</a></li>
                    <li><a href="/san-pham-moi/" style="z-index: 7;">Sản phẩm mới</a></li>
                </ul>
            </div>
            <div class="contentright">
                <div class="bupa-title-wrap">
                    <div class="bupa-title-left">
                        <a href='/san-pham-moi/' title='New products'>
                            <h2>Sản phẩm mới</h2>
                        </a>
                    </div>
                    <div class="bupa-title-right">
                    </div>
                </div>
            </div>
            <div class="product-wrap-search">
                <div class="t-products-inner">
                    <asp:Repeater runat="server" ID="rptNewProduct" OnItemDataBound="rptNewProduct_ItemDataBound">
                        <ItemTemplate>
                            <div class="t-product">
                                <a href='/san-pham/<%#FriendlyUrl(Eval("ProductTitle").ToString())%>-<%#Eval("ProductID")%>'
                                    title='<%#Eval("ProductTitle") %>' class="t-product-link">
                                    <div class="t-product-img-wrap">
                                        <img alt='<%#Eval("ProductTitle")%>' title='<%#Eval("ProductTitle")%>' src='/Media/<%#Eval("ProductImage") %>' class="t-product-img" />
                                    </div>
                                    <div class="t-product-info">
                                        <h3><%#Eval("ProductTitle")%></h3>
                                        <div class="t-product-price-wrap">
                                            <div class="t-pwpp-nonprice-wrap-inner">
                                                <div class="t-product-price">
                                                    <span class="t-product-span-price"><%#VINETLIFE.Ultility.GetPrice(Eval("ProductId"))%></span>
                                                    <span class="t-pwmp-saleprice-m">
                                                        <%#VINETLIFE.Ultility.GetSalePriceNormal(Eval("IsPromotion"),Eval("Price"))%>
                                                    </span>
                                                </div>

                                            </div>
                                        </div>
                                        <div class="t-product-info-view">
                                        </div>
                                    </div>
                                    <div class="t-product-type">
                                        <asp:Label runat="server" ID="lblType"></asp:Label>
                                    </div>
                                    <div class="t-product-wrap-more">
                                        <div class="t-product-wrap-more-head">
                                            <div class="t-product-desc-wrap">
                                                <div class="t-product-desc">
                                                    <%#Eval("Description") %>
                                                </div>
                                            </div>
                                        </div>
                                        <asp:Panel runat="server" ID="pnlPromotion">
                                            <div class="t-product-wrap-more-promotion">
                                                <span class="t-pwmp-sale">Giảm<br />
                                                    <asp:Literal runat="server" ID="ltrSale"></asp:Literal></span>
                                                <div class="t-pwmp-price-wrap">
                                                    <div class="t-pwmp-sale-saleprice">
                                                        <span>Giá gốc </span><span style="text-decoration: line-through;"><%#VINETLIFE.Ultility.GetPriceNormal(Eval("Price"))%></span>
                                                    </div>
                                                    <span class="t-pwmp-sale-price"><span>Còn: </span><%#VINETLIFE.Ultility.GetPriceNormal(Eval("SalePrice"))%></span>
                                                    <a href='/san-pham/<%#FriendlyUrl(Eval("ProductTitle").ToString())%>-<%#Eval("ProductID")%>'
                                                        title='<%#Eval("ProductTitle") %>' class="t-product-link-pro">Xem tiếp
                                                    </a>
                                                </div>
                                            </div>
                                        </asp:Panel>
                                        <asp:Panel runat="server" ID="pnlNonPromotion" Visible="false">
                                            <div class="t-product-wrap-more-nonpromotion">
                                                <div class="t-pwmp-nonprice-wrap">

                                                    <span class="t-pwmp-price">Giá: </span><span class="t-pwmp-sale-price-x"><%#VINETLIFE.Ultility.GetPriceNormal(Eval("Price"))%></span>
                                                    <a href='/san-pham/<%#FriendlyUrl(Eval("ProductTitle").ToString())%>-<%#Eval("ProductID")%>'
                                                        title='<%#Eval("ProductTitle") %>' class="t-product-link-pro-x">Xem tiếp
                                                    </a>
                                                </div>
                                            </div>
                                        </asp:Panel>
                                    </div>
                                </a>
                                <a href="#" class="t-product-info-next"></a>
                            </div>
                        </ItemTemplate>
                    </asp:Repeater>
                </div>

                <div class="collection">
                    <cp:CollectionPager LabelText="" FirstText="&amp;nbsp;&amp;nbsp;<<" BackText="< &amp;nbsp;"
                        LastText=">>" NextText=">" ShowFirstLast="True" ControlCssClass="collectionpager"
                        PagingMode="PostBack" runat="server" BackNextLinkSeparator="" BackNextLocation="Split"
                        PageNumbersDisplay="Numbers" ResultsLocation="None" BackNextDisplay="HyperLinks"
                        ID="CollectionPager1" BackNextButtonStyle="" BackNextStyle="margin-left:5px;"
                        ControlStyle="" PageNumbersSeparator="&amp;nbsp;">
                    </cp:CollectionPager>
                    <div class="collectPage">
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
